package com.house.wed.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.house.biz.DistrictBiz;
import com.house.model.District;

@Controller
public class Initialize {
	
	@Autowired
	private DistrictBiz districtBiz;
	
	@RequestMapping({"/","index"})
	public String index(HttpServletRequest request) {
		List<District> list =districtBiz.getAll();
		request.setAttribute("list", list);
		return "index";
	}
}
